﻿namespace UnitTest.iRepository;

public interface IRepository<T> where T : class, new()
{
    Task<List<T>> GetList();

    Task<T> GetById(int id);

    Task<int?> Add(T entity);

    Task<int?> Update(T entity);

    Task<int?> Delete(T entity);
}
